/* 容器样式 */
.container {
    padding: 20px;
    background-color: transparent;
}

/* 搜索栏样式 */
.search-bar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
}

.search-bar input,
.search-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
}

.search-bar input:focus,
.search-bar select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 表格样式 */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

tbody tr:hover {
    background-color: #f5f8fa;
}

/* 订单状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3e0;
    color: #ff9800;
}

.status-paid {
    background-color: #e3f2fd;
    color: #2196f3;
}

.status-shipped {
    background-color: #e8f5e9;
    color: #4caf50;
}

.status-completed {
    background-color: #e0f2f1;
    color: #009688;
}

.status-cancelled {
    background-color: #fbe7e7;
    color: #dc3545;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-page {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-page {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 按钮悬停效果 */
.btn-primary:hover { background-color: #357abd; }
.btn-secondary:hover { background-color: #5a6268; }
.btn-success:hover { background-color: #218838; }
.btn-warning:hover { background-color: #e0a800; }
.btn-danger:hover { background-color: #c82333; }
.btn-page:not(:disabled):hover { background-color: #f8f9fa; }

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.page-info {
    color: #666;
    font-size: 14px;
    display: flex;
    gap: 15px;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 订单详情弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    width: 700px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.order-info {
    margin-bottom: 30px;
}

.info-group {
    display: flex;
    margin-bottom: 15px;
}

.info-group label {
    width: 100px;
    color: #666;
    font-weight: 500;
}

.info-group span {
    color: #333;
}

.order-items {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-items h4 {
    margin: 0 0 15px;
    color: #333;
}

#orderItemsTable {
    width: 100%;
    margin-bottom: 0;
}

#orderItemsTable th {
    background-color: #f8f9fa;
    padding: 12px;
    font-size: 14px;
}

#orderItemsTable td {
    padding: 12px;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-actions {
    display: flex;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-inputs {
        flex-direction: column;
        width: 100%;
    }
    
    .search-bar input,
    .search-bar select {
        width: 100%;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    
    th, td {
        padding: 10px;
    }
    
    .table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .info-group {
        flex-direction: column;
    }
    
    .info-group label {
        width: auto;
        margin-bottom: 5px;
    }
} 